﻿/**
* @description 关闭当前页 返回父页面
*/
function closePage(isReload) {
    var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
    parent.layer.close(index); //再执行关闭
    if (isReload) {
        parent._table.refresh();
    }
}

var GUID = app.getRequest('GUID');

layui.use(['layer', 'form'], function () {
    /**
    * @description 加载layer部件
    */
    var layer = layui.layer,
        form = layui.form;

    $(function () {
        if (GUID) {
            initData();
        }
    });

    /**
    * @description 初始化加载数据
    */
    function initData() {
        app.loadData("Notice.ashx", {
            PostType: "get",
            ActionType: 'Notice',
            GUID: GUID
        }, function (data) {
            if (data) {
                $("#lblPublishDate").text(app.getTDate2(data.PublishDate));
                $("#txtNoticeDescription").html(HtmlUtil.htmlDecode(data.NoticeDescription));
            }
        });
    }
});
